<?php
	if($logged == false)
	{    
	    // Config
		$data = array(
		    "id"	=> "loginButton",
		    "name"	=> "loginButton",
		    "type"	=> "submit",
		    "value"	=> "login");
	    
	    $attributes = array(
	    	"name"	=> "loginForm",
	    	"id"	=> "loginForm"
	    );
	    
	    // Print login form
	    echo 
	    	form_open(current_url(), $attributes) .
	    		"<p>Username:</p>" .
	    		form_input("username") .
	    		
	    		"<p>Password</p>" .
				form_password("password") .
				
				form_submit($data) .
			form_close();
	}
 